[IN PROGRESS] Integration/Mapping
/integration/:id/mapping/validate
Checks candidate mapping records for one integration without storing anything. Use it before POST /v1/integration/{id}/mapping/apply (a bulk upload’s Validate step, or an agent’s dry run); apply runs the same checks and only writes the valid rows.
- Permission:
integration.view; the integration must be available to the caller, otherwise 404. - Per record:
levelis known;fieldexists in the catalogue (GET /v1/integration/{id}/fields, including dotted sub-fields andapproved); the field is writable by the caller (not computed, not owner-only for a non-owner); an ad-unit (config) record only for a field that can vary per unit;approvedonly from the owner, only at integration / organisation / publisher level and neverwnm; a non-empty, non-wnmvalue validates against the field’s JSON Schema (up to 5 messages). - Entity checks: the entity exists and isn’t archived; restricted callers may only target entities in their organisation tree; integration-level records need the integration’s owner. Failures appear in the row’s
errorsand inunknown_entities. modeis accepted for parity with apply but ignored: validate doesn’t flag records apply would skip inappendmode.- Empty
recordsreturns zero counts. - Example error texts:
Unknown field 'placement' for this integration,'Publisher ID' is filled in automatically, so it can't be set,Only the integration's owner can set '<title>','s2s' can't be set per ad unit: Pubmatic uses one value for every unit. Set it at publisher level or above.,The data (string) must match the type: integer.
POST
/integration/:id/mapping/validate
Authorizations
Path Parameters
Query Parameters
Optional publisher uid. When given, the integration is looked up among those available to this publisher's organisation (and its parents) instead of the caller's own. The publisher must exist and not be archived; a restricted (non-core) caller may only pass a publisher of their own organisation, otherwise 404 Not Found.
Required range:
x >= 1Body
application/json
/integration/:id/mapping/validate